﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XB.Core.DAO.Audit;

namespace XB.Core.DAO.Test
{
    public class Unit : IAudit
    {
        public virtual int UnitId { get; set; }

        public virtual string Name { get; set; }

        public virtual string ResidentialQuarterName { get; set; }

        private IPropertyChangeHandler _propertyChangeHandler = null;
        public IPropertyChangeHandler GetAuditHandler()
        {
            if(_propertyChangeHandler == null)
            {
                _propertyChangeHandler = new DefaultPropertyChangeHandler();
            }

            return _propertyChangeHandler;
        }
    }
}
